module spark_latlon

  use string
  use flogger
  use container
  use kinds_mod
  use mesh_const_mod
  use mesh_math_mod
  use latlon_mesh_mod
  use latlon_halo_mod
  use latlon_process_mod
  use latlon_parallel_mod
  use latlon_array_mod
  use latlon_objects

contains

  subroutine spark_init_latlon()

    call spark_final_latlon()

    allocate(proc, mesh)

  end subroutine spark_init_latlon

  subroutine spark_final_latlon()

    if (allocated(proc)) deallocate(proc)
    if (allocated(mesh)) deallocate(mesh)

  end subroutine spark_final_latlon

end module spark_latlon
